//==================================================================
//  Copyright (C) 2006-2007  Davide Pasca
//
//  This library is free software; you can redistribute it and/or
//  modify it under the terms of the GNU Lesser General Public
//  License as published by the Free Software Foundation; either
//  version 2.1 of the License, or (at your option) any later version.
//
//  This library is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
//  Lesser General Public License for more details.
//
//  You should have received a copy of the GNU Lesser General Public
//  License along with this library; if not, write to the Free Software
//  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
//==================================================================
///
///
///
//==================================================================

#ifndef NETLIB_COM_BASEDEF_H
#define NETLIB_COM_BASEDEF_H

//==================================================================
enum
{
	COM_ERR_GENERIC = -1,
	COM_ERR_INVALID_ADDRESS = -2,
	COM_ERR_HARD_DISCONNECT = -3,
	COM_ERR_OUT_OF_MEMORY = -4,
	COM_ERR_NONE = 0,
	COM_ERR_SEND_QUEUE_FULL = 1,
	COM_ERR_GRACEFUL_DISCONNECT,
	COM_ERR_CONNECTED,
	COM_ERR_TIMEOUT_CONNECTING,
	COM_ERR_ALREADY_CONNECTED
};

#endif

